<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{wfFlowTransLineBean.id}"/>
		<f:event type="preRenderView" listener="#{wfFlowTransLineBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Wf Flow Trans Line"/>

	<ui:define name="header">
		Wf Flow Trans Line
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty wfFlowTransLineBean.id}">
				Edit existing Wf Flow Trans Line
			</c:when>
			<c:otherwise>
				Create a new Wf Flow Trans Line
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="wfFlowTransLineBeanWfFlowTransLineWfFlowTrans" value="Wf Flow Trans:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{wfFlowTransBean.converter}" id="wfFlowTransLineBeanWfFlowTransLineWfFlowTrans" value="#{wfFlowTransLineBean.wfFlowTransLine.wfFlowTrans}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{wfFlowTransBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="wfFlowTransLineBeanWfFlowTransLineWfFlowTrans" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="wfFlowTransLineBeanWfFlowTransLineWfJobMaster" value="Wf Job Master:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{wfJobMasterBean.converter}" id="wfFlowTransLineBeanWfFlowTransLineWfJobMaster" value="#{wfFlowTransLineBean.wfFlowTransLine.wfJobMaster}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{wfJobMasterBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="wfFlowTransLineBeanWfFlowTransLineWfJobMaster" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="wfFlowTransLineBeanWfFlowTransLineWfFlowStatus" value="Wf Flow Status:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{wfFlowStatusBean.converter}" id="wfFlowTransLineBeanWfFlowTransLineWfFlowStatus" value="#{wfFlowTransLineBean.wfFlowTransLine.wfFlowStatus}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{wfFlowStatusBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="wfFlowTransLineBeanWfFlowTransLineWfFlowStatus" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="wfFlowTransLineBeanWfFlowTransLineWfWorkstation" value="Wf Workstation:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{wfWorkstationBean.converter}" id="wfFlowTransLineBeanWfFlowTransLineWfWorkstation" value="#{wfFlowTransLineBean.wfFlowTransLine.wfWorkstation}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{wfWorkstationBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="wfFlowTransLineBeanWfFlowTransLineWfWorkstation" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="wfFlowTransLineBeanWfFlowTransLineHrEmp" value="Hr Emp:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{hrEmpBean.converter}" id="wfFlowTransLineBeanWfFlowTransLineHrEmp" value="#{wfFlowTransLineBean.wfFlowTransLine.hrEmp}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{hrEmpBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="wfFlowTransLineBeanWfFlowTransLineHrEmp" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="wfFlowTransLineBeanWfFlowTransLineFtFlowSeqNo" value="Ft Flow Seq No:"/>
				<h:panelGroup>
					<h:inputText id="wfFlowTransLineBeanWfFlowTransLineFtFlowSeqNo" value="#{wfFlowTransLineBean.wfFlowTransLine.ftFlowSeqNo}"/>
					<h:message for="wfFlowTransLineBeanWfFlowTransLineFtFlowSeqNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="wfFlowTransLineBeanWfFlowTransLineFtUpdatedDtm" value="Ft Updated Dtm:"/>
				<h:panelGroup>
					<h:inputText id="wfFlowTransLineBeanWfFlowTransLineFtUpdatedDtm" maxLength="19" value="#{wfFlowTransLineBean.wfFlowTransLine.ftUpdatedDtm}">
						<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
					</h:inputText>
					<h:message for="wfFlowTransLineBeanWfFlowTransLineFtUpdatedDtm" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{wfFlowTransLineBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty wfFlowTransLineBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{wfFlowTransLineBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{wfFlowTransLineBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>